package com.kgc.service.Impl;

import com.kgc.dao.mapper.ReplyMapper;
import com.kgc.entity.Reply;
import com.kgc.service.interf.ReplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ReplyServiceImpl implements ReplyService {
    @Autowired
    private ReplyMapper replyMapper;

    /**
     * 回复评论
     * @param reply
     * @return
     */
    @Override
    public int addReply(Reply reply) {
        return replyMapper.addReply(reply);
    }

    /**
     * 查询回复列表
     * @return
     */
    @Override
    public List<Reply> findReplyList() {
        return replyMapper.findReplyList();
    }
}
